import { createRouter, createWebHistory } from 'vue-router';
// import search from '../components/search.vue'
// import HelloWorld from '../components/HelloWorld.vue'
const routes = [
  {
    path: '/',
    component:()=>import('../components/search.vue'),
  },
  {
    path: '/page/search',
    name: 'search',
    component: ()=>import('../components/search.vue'),
  },
  // {
  //   path: '/helloWorld',
  //   name: 'HelloWorld',
  //   component: HelloWorld,
  // },
];

const router = createRouter({
  // history: createWebHistory(),
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});

export default router;
